//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.lopo.springSecurity.config;

import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.core.authority.AuthorityUtils;

public class LoginSuccessToken extends AbstractAuthenticationToken {
    private final String token;
    private String username;

    public LoginSuccessToken(String token, String name) {
        super(AuthorityUtils.NO_AUTHORITIES);
        this.token = token;
        this.username = name;
    }

    public Object getCredentials() {
        return null;
    }

    public Object getPrincipal() {
        return this.token;
    }

    public String getUsername() {
        return this.username;
    }
}
